package com.gillion.grule.client.core;

import com.google.common.collect.Maps;
import java.util.Map;




public class ComponentHolder
{
    private static final Map<String, ExecuteComponent> EXECUTE_COMPONENTS = Maps.newConcurrentMap();

    public static void save(String name, ExecuteComponent component) {
        EXECUTE_COMPONENTS.put(name, component);
    }

    public static ExecuteComponent getComponent(String name) {
        return EXECUTE_COMPONENTS.get(name);
    }
}